.class public final Lcom/estrongs/fs/impl/usb/fs/ntfs/m;
.super Lcom/estrongs/fs/impl/usb/fs/ntfs/l;
.source "MasterFileTable.java"


# instance fields
.field private j:J


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/t;[BI)V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-wide/16 v2, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v4, p2

    move v5, p3

    .line 1
    invoke-direct/range {v0 .. v5}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/t;J[BI)V

    return-void
.end method


# virtual methods
.method public a(J)Lcom/estrongs/fs/impl/usb/fs/ntfs/l;
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->b(J)Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object p1

    .line 2
    invoke-virtual {p1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->g()V

    return-object p1
.end method

.method public a(Les/y50;)Lcom/estrongs/fs/impl/usb/fs/ntfs/l;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 3
    invoke-virtual {p1}, Les/y50;->e()J

    move-result-wide v0

    invoke-virtual {p0, v0, v1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->a(J)Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    move-result-object p1

    return-object p1
.end method

.method public b(J)Lcom/estrongs/fs/impl/usb/fs/ntfs/l;
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/r;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/t;

    move-result-object v1

    .line 2
    invoke-virtual {p0, p1, p2}, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->c(J)[B

    move-result-object v4

    .line 3
    new-instance v6, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;

    const/4 v5, 0x0

    move-object v0, v6

    move-wide v2, p1

    invoke-direct/range {v0 .. v5}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;-><init>(Lcom/estrongs/fs/impl/usb/fs/ntfs/t;J[BI)V

    return-object v6
.end method

.method public c(J)[B
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/r;->f()Lcom/estrongs/fs/impl/usb/fs/ntfs/t;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/t;->a()Lcom/estrongs/fs/impl/usb/fs/ntfs/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/a;->e()I

    move-result v6

    int-to-long v0, v6

    mul-long v2, v0, p1

    add-long/2addr v0, v2

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->t()J

    move-result-wide p1

    cmp-long v4, v0, p1

    if-gtz v4, :cond_0

    .line 4
    new-array p1, v6, [B

    const/4 v5, 0x0

    move-object v1, p0

    move-object v4, p1

    .line 5
    invoke-virtual/range {v1 .. v6}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->a(J[BII)V

    return-object p1

    .line 6
    :cond_0
    new-instance p1, Ljava/io/IOException;

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "Attempt to read past the end of the MFT, offset: "

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public t()J
    .locals 5

    .line 1
    iget-wide v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->j:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    const/16 v0, 0x80

    const/4 v1, 0x0

    .line 2
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/fs/impl/usb/fs/ntfs/l;->b(ILjava/lang/String;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->j:J

    .line 3
    :cond_0
    iget-wide v0, p0, Lcom/estrongs/fs/impl/usb/fs/ntfs/m;->j:J

    return-wide v0
.end method
